package own.zch;

import java.util.HashMap;
import java.util.Map;

import com.cndym.adapterForMobile.IFunction;
import com.cndym.adapterForMobile.IMobileAdapter;
import com.cndym.utils.SpringUtils;

import own.zch.utils.CreateMD5Util;

/***
 * SportMatchesFuncTest.java
 *
 * �ŷ���
 *
 * 2016-4-19
 */
public class Test {
	public static void main(String[] args) {
//		System.out.println(new Test().getOrder());
	}

	/**
	 * 投注测试
	 * @return
	 */
//	public String getOrder() {
//		Map<String, String> m = new HashMap<String, String>();
//		m.put("platform", "platform");
//		m.put("sid", "8001");
//		m.put("machId", "352284040670808");
//		m.put("func", "order");
//		m.put("msg", "{\"userCode\":\"20160426105142139808\",\"lotteryId\":\"001\",\"playId\":\"01\",\"buyType\":\"1\",\"buyNumberArray\":["
//				+ "{\"buyNumber\":\"02,04,09,16,22,33#15\",\"playId\":\"01\",\"pollId\":\"01\",\"item\":1,\"amount\":2},"
//				+ "{\"buyNumber\":\"01,02,05,08,10,19#10\",\"playId\":\"01\",\"pollId\":\"01\",\"item\":1,\"amount\":2},"
//				+ "{\"buyNumber\":\"01,04,08,16,19,32#03\",\"playId\":\"01\",\"pollId\":\"01\",\"item\":1,\"amount\":2},"
//				+ "{\"buyNumber\":\"06,11,12,13,19,25#07\",\"playId\":\"01\",\"pollId\":\"01\",\"item\":1,\"amount\":2}],"
//				+ "\"issueArray\":["
//				+ "{\"issue\":\"13004\",\"multiple\":1}],"
//				+ "\"description\":\"\","
//				+ "\"privacy\":\"\","
//				+ "\"commision\":\"\",\"buyAmount\":10,"
//				+ "\"floorsAmount\":\"\","
//				+ "\"wereMin\":\"\","
//				+ "\"winStop\":\"\","
//				+ "\"stopAmount\":\"\","
//				+ "\"totalAmount\":8}");
//		m.put("md5", CreateMD5Util.getMd5ByMap(m));
//		IMobileAdapter IMobileAdapter = (IMobileAdapter) ConsumerUtils.getBean("clientOrderAdapter");
//		long millis = System.currentTimeMillis();
//		Map<String, String> string = IMobileAdapter.execute(m);
//		long millis2 = System.currentTimeMillis();
//		System.err.println(string);
//		System.out.println(millis2 - millis);
//		return string.toString();
//	}
	
	/**
	 * 登录测试
	 * @return
	 */
//	public String getLogin() {
//		Map<String, String> m = new HashMap<String, String>();
//		m.put("platform", "platform");
//		m.put("sid", "8001");
//		m.put("machId", "352284040670808");
//		m.put("func", "user");
//		m.put("msg", "{\"type\":\"0\",\"info\":\"13141275334\",\"password\":\"23981595880bbe288a461f481fdbfe43\",\"moibleInfo\":\"123\",\"pushMachId\":\"dsf\"}");
//		m.put("md5", CreateMD5Util.getMd5ByMap(m));
//		IMobileAdapter IMobileAdapter = (IMobileAdapter) ConsumerUtils.getBean("clientUserLoginAdapter");
//		long millis = System.currentTimeMillis();
//		Map<String, String> string = IMobileAdapter.execute(m);
//		long millis2 = System.currentTimeMillis();
//		System.err.println(string);
//		System.out.println(millis2 - millis);
//		return string.toString();
//	}
}
